#define _CRT_SECURE_NO_WARNINGS 1

#include"list.h"

void test1()
{
	//ListNode* phead = NULL;
	//ListInit(&phead);
	ListNode* phead = ListInit();
	ListNode* p = NULL;
	LTPushBack(phead, 1);
	LTPushBack(phead, 2);
	LTPushBack(phead, 3);
	LTPushBack(phead, 4);
	LTPushBack(phead, 5);
	LTPushFront(phead, 5);

	LTprint(phead);

	LTInsert(phead, 0);
	LTprint(phead);
	p = LTFind(phead, 3);
	LTErase(p);
	LTprint(phead);
}

int main()
{
	test1();
	return 0;
}